<template>
  <div class="lUploadImg">
    <div class="label"><span class="require" v-if="props?.rule?.require">*</span>{{props.label}}</div>
    <u-textarea @update:modelValue="input" class="input" :placeholder="props.placeholder"></u-textarea>
  </div>
</template>

<script setup>
import { request } from '@/util/request'
import { ref } from 'vue'
const props = defineProps({
  modelValue: '',
  label: '',
  rule: { require: false, reg: '', message: '' },
  placeholder: '请输入'
})
const emits = defineEmits(['upload:modelValue'])
function input(v) {
  emits('upload:modelValue', v)
}

</script>

<style lang="scss" scoped>
.label {
  padding-top: 15rpx;
  font-size: 28rpx;
  font-family: PingFang SC, PingFang SC-Regular;
  font-weight: 400;
  text-align: left;
  color: #333333;
  padding-bottom: 15rpx;
}
.require {
  color: #df5146;
}
</style>